package com.naiterui.ehp.bs.doctor.repository;

import java.util.List;
import java.util.Set;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.DrFollowUpRecordForm;

/**
 * 随访任务表单
 *
 * @author yangfuya
 * @since 2022/1/5
 */
@Repository
public interface IDrFollowUpRecordFormRepository extends BaseJpaRepository<DrFollowUpRecordForm, Long> {

    /**
     * 根据随访id获取随访表单
     * 
     * @param followUpId
     * @return
     */
    List<DrFollowUpRecordForm> findAllByAndFollowUpId(Long followUpId);

    /**
     * 根据随访id获取随访表单集合
     *
     * @param followUpIdSet
     * @return
     */
    List<DrFollowUpRecordForm> findAllByAndFollowUpIdIn(Set<Long> followUpIdSet);

    /**
     * 获取随访任务表单
     * 
     * @param id
     * @return
     */
    DrFollowUpRecordForm findFirstById(Long id);
}
